package Mouse_key_Event;

import java.awt.Color;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.Graphics2D;

import javax.swing.BorderFactory;
import javax.swing.JButton;

public class eastbutton extends JButton{
	public eastbutton(String text)
	{
		
		super(text);
		this.setOpaque(false);
		this.setContentAreaFilled(true);
		setBorder(BorderFactory.createLineBorder(Color.BLACK)); 
		this.setFont(new Font("宋体",Font.BOLD,16));
		this.setFocusable(false);
		this.setBackground(Color.green);
		
		this.setPreferredSize(new Dimension(50,50));
		
	}
	public void paintComponent(Graphics g)
	{
		super.paintComponent(g);
		Graphics2D g2=(Graphics2D)g;
	}
	
	
}
